import java.util.ArrayList;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Scanner;

public class Main{
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        //hScore1-11分制小华得分、oScore1-11分制对手得分、hScore2-11分制小华得分、oScore2-21分制度对手得分
        int hScore1=0,oScore1=0,hScore2=0,oScore2=0;
        String input=scanner.next();
        //n-为以后提取input单个字符的索引
        // ans-分别为11分制度和21分制度的得分比数组（例：ans1[0][0]-11分制度第一局小华最终得分、ans1[0][0]-11分制度第一局对手最终得分）
        int n=1,ans1[][]=new int[5000][2],ans2[][]=new int[5000][2],a1=0,a2=0;
        Queue<String> queue=new LinkedList<String>();
        ArrayList<String> list=new ArrayList<>();
        //输入
        while (true){
            if (input.indexOf('E')!=-1) break;
            input=input+scanner.next();

        }
        //单个提取
        char temp=input.charAt(0);
        if (temp=='E'){
            ans1[0][0]=0;ans1[0][1]=0;ans2[0][0]=0;ans2[0][1]=0;
            a1=1;
            a2=1;
        }
        while (temp!='E'){
            if (temp=='W'){
                hScore1+=1;
                hScore2+=1;
            }
            if (temp=='L'){
                oScore1+=1;
                oScore2+=1;
            }
            if ((hScore1>=11||oScore1>=11)&& Math.abs(hScore1-oScore1)>=2){
                ans1[a1][0]=hScore1;
                ans1[a1++][1]=oScore1;
                hScore1=0;
                oScore1=0;
            }

            if ((hScore2>=21||oScore2>=21)&&Math.abs(hScore2-oScore2)>=2){
                ans2[a2][0]=hScore2;
                ans2[a2++][1]=oScore2;
                hScore2=0;
                oScore2=0;
            }
            if (n>input.length()-1||input.charAt(n)=='E') {
                ans1[a1][0]=hScore1;
                ans1[a1++][1]=oScore1;
                ans2[a2][0]=hScore2;
                ans2[a2++][1]=oScore2;

                break;
            }
            temp=input.charAt(n++);

        }

        for (int i = 0; i < a1; i++) {
            System.out.println(ans1[i][0]+":"+ans1[i][1]);
        }
        System.out.println();
        for (int j = 0; j < a2; j++) {
            System.out.println(ans2[j][0]+":"+ans2[j][1]);
        }
    }
}

